/**
 * @Classname FirstObservers
 * @Description TODO
 * @Date 2023/9/1 11:25
 * @Created by wpc
 */
public class FirstObserver extends Observers {

    protected FirstObserver(Subject subject){
        this.subject = subject;
        this.subject.attach(this);
    }

    @Override
    public void update() {
        System.out.println( "FirstObserver: "
                + Integer.toBinaryString( subject.getState() ) );
    }
}
